]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
network: Fix visibility of the VPN icon
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 17 Jun 2013 22:24:52 +0000 (18:24 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 5 Aug 2013 19:19:40 +0000 (15:19 -0400)
This is a regression from e6c239d0f3318984815049abb621f6b0cb3dc85e,
where we removed the calls to hide()/show() when we had a VPN device
vs. not.

https://bugzilla.gnome.org/show_bug.cgi?id=702536

js/ui/status/network.js

index dde566ed390ab060bc9555ff817959d943d1da73..1fa8ebc9f9ae998b8b896b3cc61826faa5c6b2ef 100644 (file)
@@ -1158,7 +1158,6 @@ const NMApplet = new Lang.Class({
         this.parent('network-offline-symbolic', _('Network'));
 
         this._vpnIcon = this.addIcon(null);
-        this._vpnIcon.hide();
 
         // Device types
         this._dtypes = { };
@@ -1602,5 +1601,6 @@ const NMApplet = new Lang.Class({
         }
 
         this._vpnIcon.icon_name = this._vpnSection.getIndicatorIcon();
+        this._vpnIcon.visible = (this._vpnIcon.icon_name != '');
     }
 });